var db = require("./db")
var mongoose = require("mongoose")

var UserSchema = new mongoose.Schema({
    icon:String,
    name:String,
    phone:Number,
    password:String,
    type:Number,
    info:String
})

UserSchema.statics.findByPage = function(callback){
    this.find().limit(10).exec(callback)
}


module.exports = db.model('User',UserSchema)
